import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import index from '@/components/index'
import nav from '@/components/frame/nav'
import portalWorkflow from '@/components/portal/workflow'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/index',
      name: 'index',
      component: index,
      children:[
        { path: '/portalWorkflow', component: portalWorkflow},
      ]
    },
    {
      path: '/nav',
      name: 'nav',
      component: nav
    },
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    }
  ]
})
